/*
 * IkaPoint.cpp
 */

#include "IkaPoint.h"

using namespace atomic;

namespace atomic {

//*********************************************************************
IkaPoint::IkaPoint() :
	myX(0.f), myY(0.f) {
}

//*********************************************************************
IkaPoint::IkaPoint(float x, float y) :
	myX(x), myY(y) {
}

//*********************************************************************
IkaPoint::IkaPoint(const IkaPoint &point) :
	myX(point.myX), myY(point.myY) {
}

//*********************************************************************
IkaPoint::~IkaPoint() {
}

//*********************************************************************
IkaPoint& IkaPoint::operator+(const IkaPoint & pt) {
	this->myX = pt.myX + myX;
	this->myY = pt.myY + myY;
	return *this;
}

//*********************************************************************
IkaPoint& IkaPoint::operator=(const IkaPoint & pt) {
	this->myX = pt.myX;
	this->myY = pt.myY;
	return *this;
}

//*********************************************************************
float IkaPoint::X() {
	return myX;
}

//*********************************************************************
float IkaPoint::Y() {
	return myY;
}

//*********************************************************************
void IkaPoint::SetX(float x) {
	this->myX = x;
}

//*********************************************************************
void IkaPoint::SetY(float y) {
	this->myY = y;
}

//*********************************************************************
}
